import service from '../request'

// 获取椭圆
export function getEllipse() {
  return service({
    url: '/Draw/DrawEllipse1/geojson',
    method: 'get',
  })
}

// 新增椭圆
export function postAddEllipse(params) {
  return service({
    url: '/Draw/DrawEllipse1',
    method: 'post',
    data: params,
  })
}

export function putEllipse(params) {
  return service({
    url: `/Draw/DrawEllipse1`,
    method: 'put',
    data: params,
  })
}
